from time import strftime

f = open("P:/aa/Log.x",'a');
f.write(strftime("%Y-%m-%d") + ";" + strftime("%H:%M:%S") + ";" + "Logout" + "\n");